#include <iostream>
#include <stdio.h>
#include <string>

using namespace std;

int f(int n,string s){
    if (n != 0){
        cout << ' ' << s;
        f(n-1,s);
    }
    else{
        return 0;
    }
}

int main() {
    int n;
    cin >> n;
    cout << "dog";
    f(n,"hug");
    cout << " fish";
    f(n,"me");
    return 0;
}